<template>
     <div>
         <Headnav title="精彩跟帖"></Headnav>
         <div > 
             <Maincontent v-for="(value,index) in commemtlist" :key='index' :data='value'></Maincontent>
         </div>
     </div>
</template>

<script>
import Headnav from '../components/navgitar'
import Maincontent from '../components/Comment/main'
export default {
    data(){
        return{
            commemtlist:[]
        }
    },
    components:{
        Headnav,
        Maincontent
    },
    created(){
        this.$axios({
            url:'/post_comment/'+this.$route.query.id
        }).then((res)=>{
            console.log(res);
            this.commemtlist=res.data.data
        })
    }

}
</script>

<style>

</style>